import Layout from '@/views/layout/Layout'

const route = {
  path: '/order',
  redirect: '/order/list',
  component: Layout,
  alwaysShow: false,
  hidden: false,
  meta: {
    title: '订单管理',
    icon: 'nested'
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/order/list'),
      name: 'OrderList',
      hidden: false,
      meta: {title: '订单列表'}
    },
    {
      path: 'detail/:id',
      component: () => import('@/views/order/detail'),
      name: 'OrderDetail',
      hidden: true,
      props: true,
      meta: {title: '订单详情'}
    }
  ]
}

export default route
